package bean.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import commons.jdbc.annotation.Column;
import commons.jdbc.annotation.PrimaryKey;
import commons.jdbc.annotation.Table;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * bean.pojo
 * User: xlh
 * Date: 2024/12/23 14:19
 * motto:推到高塔
 * Description:
 * Version: V1.0
 */
@Data
@Table(value = "announcement")
public class Announcement {
    @Column("announcement_id")  //这是数据的字段  字段名和属性名一致
    @PrimaryKey(isAutoIncrease = true)  //这字段是主键
    private Integer announcementId;
    @Column(value = "announcement_title")   //这是数据的字段  字段名和属性名不一致
    private String announcementTitle;
    @Column("announcement_text")
    private String announcementText;
    @Column("announcement_add_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime announcementAddTime;
}
